package morning;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public class LocalDates {

    public static void main(String[] args) {
      //now获取当前时间
      // of获取录入的时间
        //toLocalDate
        LocalTime local = LocalTime.now();
        // localDatec.now年月日,
        //LocalTime.now时分秒
        //LocalDateTime.now年月日时分秒,
        //LocalDate.of获取录入的的年月日,
        //LocalTime.of获取录入的时分秒,
        //LocalDate.of获取录入的年月日时分秒,
        LocalDate res = LocalDate.now();
        LocalTime now = LocalTime.now();
        LocalDateTime res1 = LocalDateTime.now();
        System.out.println(res);
        System.out.println(now);
        System.out.println(res1);

        LocalDate.of(2020, 10, 11);
        LocalDateTime res3 = LocalDateTime.of(2020, 12, 31, 7, 38, 46);
        System.out.println(res3);




    }
}
